package com.infinitus.autocatlog.web;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;


/**
 * 
 * @author 潘科材
 * 获取功能下载情况数据
 */
@Controller
@RequestMapping("/whitelist")
public class Whitelist {
	@RequestMapping("/")
    public @ResponseBody String getList(@RequestParam(value="app",required=false)String app) {  
		System.out.println("------------in---------------");
		JSONObject json = new JSONObject();
		JSONArray jarr = new JSONArray();
		jarr.add("calendarAdd");
		jarr.add("calendarDetails");
		jarr.add("calendarEdit");
		jarr.add("index");
		JSONObject json_sub_2 = new JSONObject();
		json_sub_2.put("module_calendarBf", jarr);
		JSONObject json_sub_1 = new JSONObject();
		json_sub_1.put("activity", json_sub_2);
		String str = 
						"{                                                                                                                                                                                               "+
						"    \"activity\": {                                                                                                                                                                             "+
						"        \"module_activityBf\": [\"activityDetails\", \"activityInvitation\", \"activitySignUp\", \"index\", \"main\"],                                                                          "+
						"        \"module_calendarBf\": [\"calendarAdd\", \"calendarDetails\", \"calendarEdit\", \"calendarRemind\", \"calendarRemind-Allday\",                                                          "+
						"            \"calendarRepeat\", \"calendarSearch\", \"calendarSearch_pad\", \"index\", \"main\"]                                                                                                "+
						"    },                                                                                                                                                                                          "+
						"    \"followup\": {                                                                                                                                                                             "+
						"        \"module_apprecommend_eliteBf\": [\"eliteFavorites\", \"elitePersonStory\", \"eliteStory\", \"index\", \"main\"],                                                                       "+
						"        \"module_apprecommend_infinitusBf\": [\"albumSlide\", \"detail\", \"index\", \"main\"],                                                                                                 "+
						"        \"module_apprecommend_mystoryBf\": [\"albumEdit\", \"albumFinish\", \"albumSlide\", \"index\", \"main\"],                                                                               "+
						"        \"module_myCustomerBf\": [\"editTag\", \"index\", \"info\", \"main\", \"record\", \"recordDetail\"],                                                                                    "+
						"        \"module_potentialCustomerBf\": [\"batchDelete\", \"detail\", \"detailOnly\", \"edit\", \"groupEdit\", \"groupList\",                                                                   "+
						"            \"groupMembers\", \"groupSelectMember\", \"index\", \"main\", \"merge\"],                                                                                                           "+
						"        \"module_recommendBf\": [\"index\", \"introduce\", \"main\"]                                                                                                                            "+
						"    },                                                                                                                                                                                          "+
						"    \"information\": {                                                                                                                                                                          "+
						"        \"module_careerBf\": [\"index\", \"main\", \"wxWallBulletinDetails\"],                                                                                                                  "+
						"        \"module_companyNewsBf\": [\"index\", \"main\"],                                                                                                                                        "+
						"        \"module_homepage\": [\"index\"],                                                                                                                                                       "+
						"        \"module_intoInfinitusBf\": [\"index\", \"main\"],                                                                                                                                      "+
						"        \"module_lifeBf\": [\"index\", \"main\"],                                                                                                                                               "+
						"        \"module_messageBf\": [\"index\", \"main\", \"messageDetail\"],                                                                                                                         "+
						"        \"module_monthlyBf\": [\"content\", \"index\", \"list\"],                                                                                                                               "+
						"        \"module_official_chairman\": [\"index\"],                                                                                                                                              "+
						"        \"module_official_contentBf\": [\"categoryList\", \"commentList\", \"index\", \"main\"],                                                                                                "+
						"        \"module_official_headline\": [\"content\", \"openImgs\", \"index\"],                                                                                                                   "+
						"        \"module_official_images\": [\"index\", \"showImgs\"],                                                                                                                                  "+
						"        \"module_official_product\": [\"index\", \"productContent\", \"productList\"],                                                                                                          "+
						"        \"module_official_scan\": [\"index\"],                                                                                                                                                  "+
						"        \"module_official_search\": [\"index\"],                                                                                                                                                "+
						"        \"module_official_video\": [\"index\", \"tabtemplate\", \"videoitemtemplate\"]                                                                                                          "+
						"    },                                                                                                                                                                                          "+
						"    \"learn\":{                                                                                                                                                                                 "+
						"        \"module_elnBf\":[\"course/assess\",\"course/index\",\"course/remind\",\"course/search\",\"course/seriesArray\",\"course/seriesDetail\",\"course/talk\",                                "+
						"        \"download/delete\",\"download/index\",\"information/details\",\"information/index\",\"information/investigaAnswer\",\"information/investigating\",                                     "+
						"        \"information/investigation\",\"information/main\",\"information/notice\",                                                                                                              "+
						"        \"login/getPassword\",\"login/index\",                                                                                                                                                  "+
						"        \"qa/a_details\",\"qa/discuss\",\"qa/index\",\"qa/issue\",\"qa/q_details\",\"qa/recommend\",                                                                                            "+
						"        \"user/answer\",\"user/c_problem\",\"user/credit\",\"user/d_feedback\",\"user/feedback\",\"user/footprint\",\"user/general\",                                                           "+
						"        \"user/h_feedback\",\"user/index\",\"user/integral\",\"user/notice\",\"user/o_guide\",\"user/question\",                                                                                "+
						"        \"user/h_feedback\",\"user/ranking\",\"user/reader\",\"index\"]                                                                                                                         "+
						"    },                                                                                                                                                                                          "+
						"    \"management\": {                                                                                                                                                                           "+
						"        \"module_assessmentBf\": [\"eachSectionScore\", \"index\", \"main\", \"seventyUpProblems\", \"seventyUpSelfDetail\",                                                                    "+
						"            \"statementDetail\", \"subordinatesDetails\", \"takeInAsment\", \"TestResult\"],                                                                                                    "+
						"        \"module_businessBf\": [\"index\", \"main\"],                                                                                                                                           "+
						"        \"module_marketAnalysisReportBf\": [\"fourReward\", \"index\", \"main\", \"marketRough\", \"product\", \"rank\"],                                                                       "+
						"        \"module_monthlyWorkPlanBf\": [\"index\", \"main\"],                                                                                                                                    "+
						"        \"module_mutualGoal2017Bf\": [\"collectForm\", \"collectForm40\", \"index\", \"main\", \"writeForm\", \"writeForm40\"],                                                                 "+
						"        \"module_newStar2016Bf\": [\"achieve\", \"cultivate\", \"cultivate2\", \"followup\", \"growup\", \"guide\", \"score\",                                                                  "+
						"            \"index\", \"info1\", \"info2\", \"info3\", \"innovationSetail\", \"main\", \"marketGroup\", \"percentage\", \"referee\"],                                                          "+
						"        \"module_workPlansBf\": [\"collectForm\", \"collectForm40\", \"index\", \"main\", \"writeForm\", \"writeForm40\"]                                                                       "+
						"    },                                                                                                                                                                                          "+
						"    \"myaccount\": {                                                                                                                                                                            "+
						"        \"module_addressBf\": [\"addressList\", \"addressSelect\", \"homeDelivery\", \"homeDeliveryEdit\", \"homeDeliveryShow\", \"index\",                                                     "+
						"            \"serviceCenter\", \"serviceCenterSelect\", \"serviceCenterShow\", \"storePickup\", \"storePickupSelect\", \"storePickupShow\"],                                                    "+
						"        \"module_apprecommend_calculatorBf\": [\"index\", \"main\"],                                                                                                                            "+
						"        \"module_apprecommend_mystoryBf\": [\"albumEdit\", \"albumFinish\", \"albumSlide\", \"index\", \"main\"],                                                                               "+
						"        \"module_authorityToPayChangeBf\": [\"commitment\", \"index\", \"main\", \"result\"],                                                                                                   "+
						"        \"module_authorityToPayRevocationBf\": [\"failure\", \"index\", \"revocation\", \"success\"],                                                                                           "+
						"        \"module_dealerBf\": [\"index\", \"main\"],                                                                                                                                             "+
						"        \"module_dealerRenewalBf\": [\"application\", \"index\", \"main\"],                                                                                                                     "+
						"        \"module_eCardBf\": [\"index\", \"main\"],                                                                                                                                              "+
						"        \"module_favoriteBf\": [\"balance\", \"coupon\", \"editFavorites\", \"editShoppingCart\", \"favorites\", \"finished\", \"index\",                                                       "+
						"            \"main\", \"orderDetails\", \"payType\", \"productDetails\", \"productDetails_imageText\", \"productList\", \"prom8Details\",                                                       "+
						"            \"shoppingCart\", \"topSales\", \"wechatPayInfo\"],                                                                                                                                 "+
						"        \"module_homepage\": [\"index\", \"main\"],                                                                                                                                             "+
						"        \"module_myAccount_bupmBf\": [\"about\", \"help\", \"index\", \"login\", \"main\", \"study\", \"systemSettings\", \"userTreaty\"],                                                      "+
						"        \"module_myAccountBf\": [\"accountBalance\", \"consumptionPoints\", \"detail\", \"duijiangIntegral\", \"forgetBpassword\", \"forgetEpassword\",                                         "+
						"            \"forgetPassword\", \"H5Report\", \"index\", \"main\", \"myGift\", \"myMessage\", \"myMessageDetails\", \"passwordChange\", \"passwordIndex\", \"passwordManagement\",              "+
						"            \"paymentSearch\", \"restBpassword\", \"restEpassword\", \"storeIntegral\", \"trainingIntegral\", \"Type24DealerInfo\"],                                                            "+
						"        \"module_myCouponBf\": [\"couponInfo\", \"index\", \"main\"],                                                                                                                           "+
						"        \"module_myWallet\": [\"index\", \"main\"],                                                                                                                                             "+
						"        \"module_newMyCouponBf\": [\"couponInfo\", \"index\", \"main\"],                                                                                                                        "+
						"        \"module_newStar2016Bf\": [\"index\"],                                                                                                                                                  "+
						"        \"module_queryBusinessListBf\": [\"index\", \"main\", \"resultList\"],                                                                                                                  "+
						"        \"module_rechargeBf\": [\"accountBalance\", \"add\", \"balanceDetail\", \"commitment\", \"index\", \"main\", \"openComplete\", \"payComplete\",                                         "+
						"            \"payFail\"],                                                                                                                                                                       "+
						"        \"module_taxFirmBf\": [\"agreement\", \"agreementForm\", \"detail\", \"help\", \"index\", \"levyStatus\", \"main\"]                                                                     "+
						"    },                                                                                                                                                                                          "+
						"    \"product\":{                                                                                                                                                                               "+
						"                                                                                                                                                                                                "+
						"    },                                                                                                                                                                                          "+
						"    \"sell\":{                                                                                                                                                                                  "+
						"        \"module_homepage\":[\"index\",\"main\"]                                                                                                                                                "+
						"    },                                                                                                                                                                                          "+
						"    \"shopping\":{                                                                                                                                                                              "+
						"        \"module_myOrderBf\":[\"draftInfo\",\"index\",\"main\",\"myOrderInfo\",\"myOrderList\",\"orderInfo\",\"orderListHomeDelivery\",                                                         "+
						"            \"orderListIndex\",\"orderListServiceCenter\",\"orderListStorePickup\"],                                                                                                            "+
						"        \"module_recommendBf\":[\"index\",\"main\",\"payCompletion\",\"previewCustome\",\"selectCustomer\",\"writeCustomer\"],                                                                  "+
						"        \"module_shoppingBf\":[\"balance\",\"coupon\",\"editFavorites\",\"editShoppingCart\",\"favorites\",\"finished\",\"heathTest\",                                                          "+
						"            \"index\",\"main\",\"orderDetails\",\"payType\",\"product\",\"productDetails\",\"productList\",\"prom8Details\",                                                                    "+
						"            \"promMore\",\"shoppingCart\",\"testStart\",\"topSales\",\"wechatPayInfo\"]                                                                                                         "+
						"    },                                                                                                                                                                                          "+
						"    \"store\":{                                                                                                                                                                                 "+
						"                                                                                                                                                                                                "+
						"    },                                                                                                                                                                                          "+
						"    \"treasure\":{                                                                                                                                                                              "+
						"        \"module_haveawardactivityBf\":[\"index\",\"main\",\"winPrizeDetails\"],                                                                                                                "+
						"        \"module_reportBf\":[\"congratulationReport\",\"dailyReportOver40\",\"followUpReport\",\"index\",\"main\",\"monthReport\",                                                              "+
						"        \"remuneration\",\"storePickup\"]                                                                                                                                                       "+
						"    }                                                                                                                                                                                           "+
						"}                                                                                                                                                                                               ";
		
		return str;  
    } 
}
